{extend name="common/application" /}
{block name="css"}

<link rel="stylesheet" type="text/css" href="_CSS_/reset.css">
<link rel="stylesheet" type="text/css" href="_CSS_/common.css">
<link rel="stylesheet" type="text/css" href="_CSS_/help.css"/>
<link rel="stylesheet" type="text/css" href="_CSS_/store_center.css"/>
<!--[if lt IE 9]>
<script src="http://www.ijquery.cn/js/html5shiv.js"></script>
<![endif]-->

{/block}
{block name="content"}

<!-- 主体内容 -->
<div class="main">
    <div class="mainBody normalBox clearfix" style="padding-bottom: 80px;">
        <div class="open-box">
            <div class="open-top">
                <p class="open-title">免费开店</p>
                <div class="open-prompt"><span class="icons icon-prompt"></span>重要提醒：根据法律规定，支付机构将根据身份信息的完善程度设定不同的余额支付额度，可能对店铺经营有影响（企业店铺不受影响），立即查看身份信息！
                </div>
                <p class="open-tip">申请开通店铺完全免费；一个身份证只能开一家店；开店之后店铺无法注销，申请到正式开通预计需要 5 个工作日。想了解更多开店攻略请看<a class="cl-b"
                                                                                                       href="javascript:;">开店规则必看</a>。
                </p>
                <div class="open-step">
                    <img src="_IMG_/open_step2.png">
                </div>
            </div>
            <div class="open-con">
                <div class="open-rev" style="margin-top: 135px;">
                    <img src="_IMG_/review1.png">
                    <p>认证已完成，正在审核中</p>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}
{block name="js"}
<!-- 脚本引入 -->
<script src="_P_/layer/layer.js"></script>
<script>
    $(function () {
        var userinfo = $.cookie('userinfo');
        if (userinfo != null) {
            var user_login = $.base64.decode(userinfo).split(",");
            $.ajax({
                type: "get",
                url: "{:url('api/shop/store_open3')}",
                data: {'uid': user_login[0]},
                dataType: 'jsonp',
                success: function (msg) {
                    if (msg.code == 200) {
                        if (msg.data.status == 2) {
                            window.location.href = "{:url('index/store/store_open5')}";
                        } else if (msg.data.status == 3) {
                            window.location.href = "{:url('index/store/store_open4')}";
                        }
                    } else {
                        layer.msg(msg.message, {icon: 5, time: 5000});
                    }
                }
            })
        } else {
            window.location.href = "{:url('index/login/index')}";
        }
    })

</script>
{/block}
